package run.controller;

import entity.Dept;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import run.service.DeptService;

/**
 * @author zhangxian
 * @program: parent
 * @description:
 * @date 2022-03-23 10:44:32
 */
@Controller
@RequestMapping("/dept")
public class DeptController {


    @Autowired
    private DeptService deptService;

    @RequestMapping("/getInfo")
    @ResponseBody
    private Dept getInfo(String deptNo){
        return deptService.getInfo(deptNo);
    }

}
